<template>
  <div class="app-container">
    <h1>App 根组件</h1>
    
    <hr />
    <left :message="message" :userinfo="userinfo">  </left>
    <div class="box">
      
  
    </div>
  </div>
</template>

<script>
import Left from '@/components/Left.vue';
import bus from './eventBus.js';

export default {
  data(){
    return {
      message:'2023-01-16',
      userinfo:{name:'cxd',age:'22'},

    }
  },
  components:{
    Left
  },
  methods:{
    sendMsg(){
      bus.$emit('share',this.message);
    }
  }
}
</script>

<style lang="less">
.app-container {
  padding: 1px 20px 20px;
  background-color: #efefef;
}
.box {
  display: flex;
}
</style>
